package org.example;

/**
 * 双端队列
 * @param <E>
 */
public interface Deque<E> {

    boolean isEmpty();
    boolean isFull();
    boolean offerFirst(E e);
    boolean offerLast(E e);
    E pollFirst();
    E pollLast();
    E peekFirst();
    E peekLast();

}
